<template>
  <div>
    <el-button type="text" @click="dialogVisible = true">点击打开 Dialog</el-button>
    <el-dialog
        :visible.sync="dialogVisible"
        title="提示"
        width="30%">
      <span>这是一段信息</span>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      dialogVisible: false
    };
  },
  methods: {
    handleClose(done) {
      console.log(done)
    }
  }
};
</script>
<!-- style添加scoped 自定义的不生效 -->
<style>
.el-dialog__body {
  border-top: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;
}
</style>
